package com.hellobike.haxing.util;

public class CustomWKHtmlToPdfUtil {
    public static String getCommand(String sourceFilePath, String targetFilePath) {
        String system = System.getProperty("os.name");
        if (system.contains("Windows")) {
            return "D:\\Program Files\\wkhtmltopdf\\wkhtmltoimage.exe " + sourceFilePath + " " + targetFilePath;
        } else if (system.contains("Linux")) {
            return "wkhtmltoimage --quality 60 --width 722 --height 1169 -f png " + sourceFilePath + " " + targetFilePath;
        }
        return "";
    }
}
